#include <iostream>
using namespace std;
string email(string mail,string dom,string user);
int main()
{
string mail,user,dom;
cin>>mail;
cin>>user;
cin>>dom;
cout<<email(mail,user,dom);
return 1;
}
string email(string a,string b,string c)
{
    int i,i2;
    i=0;
    i2=0;
    while(a[i]!='\0')
    {
        if(a[i]=='/')
        {
            cout<<"Correo Electronico Invalido"<<endl;
            break;
            return 0;
        }
     i++;
    }
    i=0;
    while(a[i]!='@')
    {
        if(b[i]!=a[i])
        {
            cout<<"Usuario Invalido"<<endl;
            break;
            return 0;
        }
     i++;
    }

i=a.length()-1;
  while(a[i]!='@'&& c[i2]!= '\0')
  {
    if(c[i2]==a[i])
    {
        i--;
        i2++;

    }
    else
    {
        cout<<"Dominio Invalido"<<endl;
        break;
        return 0;
    }
    }

}
